package com.gaofeng.day11;

/**
 * @author gaofeng
 * @date 2024-12-22 - 21:40
 */
public class demo09 {
    public static void main(String[] args) {
       int data1 = sum(1,3);
       System.out.println(data1);
       int data2 = sum(1,2,3);
       System.out.println(data2);
       double data3 = sum(1.2,3,4);
        System.out.println(data3);
    }

    public static int sum(int a,int b) {
        return a + b;
    }
    public static int sum(int a,int b,int c) {
        return a + b;
    }
    public static double sum(double a,int c,int b) {
        return a + b;
    }
}
